package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);

    public Page<User> selectByCondition(String queryString);


    public void setUserRoleAssociation(Map<String, Integer> map);

    public void add(User user);

    public User findById(Integer id);

    public void edit(User user);

    public void deleteUserRoleAssociation(Integer userId);

    public void delete(Integer id);

    public Integer checkName(String username);

}
